package com.ruoyi.cash.domain.persistantobject.order;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单主项
 * </p>
 *
 * @author lzq
 * @since 2024-12-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cash_order")
public class OrderPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 业务单元编号
     */
    private Integer segNo;

    private String orderSn;

    private BigDecimal price;

    private String status;

    private Integer memberId;

    /**
     * 实际支付价格
     */
    private BigDecimal realPrice;

    /**
     * 折扣价格
     */
    private BigDecimal discountPrice;

    /**
     * 支付方式
     */
    private String paymentType;

    /**
     * 收银员
     */
    private String employee;

    /**
     * 收银员ID
     */
    private Integer employeeId;

    /**
     * 付款时间
     */
    private LocalDateTime paymentTime;

    /**
     * 店铺ID
     */
    private Integer shopId;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
